﻿namespace JxcLite.Pages.Report;

/// <summary>
/// 商品利润表页面。
/// </summary>
[Route("/rms/GoodsProfit")]
[Menu(AppConstant.Report, "商品利润表", "table", 5)]
public class GoodsProfit : BaseTablePage<ProfitInfo>
{
    private IReportService Service;

    protected override async Task OnInitPageAsync()
    {
        await base.OnInitPageAsync();
        Service = await CreateServiceAsync<IReportService>();
        Table.OnQuery = Service.QueryProfitsAsync;
    }

    [Action] public Task Export() => Table.ExportDataAsync();
}